﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeFile="~/Admin/Loaihinh.aspx.cs" CodeBehind="Loaihinh.aspx.cs" Inherits="NCKH.Admin.Loaihinh" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div style="margin-left:200px">
         <fieldset style="width:450px">
             <legend style="text-align:center">QUẢN LÝ LOẠI HÌNH</legend>
        <table style="width: 441px">
         
            <tr>
                <td>Loại hình đề tài</td>
                <td>
                      <asp:TextBox ID="txttenLH" runat="server" Height="28px" Width="208px"></asp:TextBox>
                </td>
                <td>
                     <asp:RequiredFieldValidator ID="rfvtenLH" runat="server" ControlToValidate="txttenLH" Display="Dynamic" ErrorMessage="Nhập loại hình!"></asp:RequiredFieldValidator>
                </td>
            </tr>
           
            <tr>
                <td> &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;</td>
                <td>
                      <asp:ImageButton ID="ibtThem" runat="server" ImageUrl="../Images/Save%20(1).png"  OnClick="ibtThem_Click" CommandName="Thêm" />Lưu lại &nbsp;
            
                    <asp:ImageButton ID="ibtHuy" runat="server" ImageUrl="../Images/xoa.png"  OnClick="ibtHuy_Click" CommandName="Xóa" Height="22px" Width="38px" />Hủy bỏ &nbsp;
                </td>
            </tr>
            <tr>
               <td>&nbsp;&nbsp;&nbsp;Nhập thông tin&nbsp;&nbsp;&nbsp;</td> 
                
                <td>
                    <asp:TextBox ID="txtTimkiem" runat="server" Height="24px" Width="204px"></asp:TextBox>
                </td>
                <td>
                     <asp:ImageButton ID="ibtTimkiem" runat="server" ImageUrl="../Images/search.png"  CausesValidation="false"  OnClick="ibtTimkiem_Click"  />
          
                </td>
            </tr>
           
        </table>
        </fieldset>
        </div>
    <br />
    <br />
    <div style="margin-left:200px">
      <fieldset style="width:400px">
          <legend style="text-align:center">DANH SÁCH LOẠI HÌNH</legend>
        <asp:GridView ID="grvloaihinh" runat="server" AutoGenerateColumns="false" EnableModelValidation="false" onrowcommand="grvloaihinh_RowCommand" DataKeyNames="MaLH">
            <Columns>
                <asp:TemplateField HeaderText="&nbsp; &nbsp;Chọn&nbsp; &nbsp;">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkchon" runat="server" />
                     
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:BoundField HeaderText="&nbsp; &nbsp;&nbsp; &nbsp;Loại hình đề tài&nbsp; &nbsp;&nbsp; &nbsp;" DataField="TenLH" />
                <asp:TemplateField HeaderText="&nbsp; &nbsp;Xóa&nbsp; &nbsp;">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtxoa" runat="server" CommandName="xoa" CommandArgument='<%# Eval("MaLH") %>'
                             OnClientClick='return confirm("Có chắc chắn muốn xoá không?");'>
                      <img src="../Images/xoa.png" alt="Xóa" title="Xóa" /></asp:LinkButton>
                        </ItemTemplate>
                     
                </asp:TemplateField>
                  <asp:TemplateField HeaderText="&nbsp; &nbsp;Sửa&nbsp; &nbsp;">
                    <ItemTemplate>
                         <a href='Loaihinh_Sua.aspx?pid=<%# Eval("MaLH") %>'>
                         <img src="images/edit.png" alt="Sửa" title="Sửa" /></a>
                    </ItemTemplate>
                     
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
          </fieldset>
         <div style="text-align:left">
            <asp:ImageButton ID="ibtXoa" runat="server" ImageUrl="../Images/delete.png" OnClick="ibtXoa_Click" CommandName="Xóa" CausesValidation="false" Height="31px" Width="25px" />
       </div>
       </div>
</asp:Content>
